package com.whq.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whq.dao.BasicNoticeLogMapper;
import com.whq.entity.BasicNoticeLog;
import com.whq.service.BasicNoticeLogService;

@Service(value = "tdBasicNoticeLogService")
public class BasicNoticeLogServiceImpl implements BasicNoticeLogService {

    @Autowired
    private BasicNoticeLogMapper<BasicNoticeLog>tdBasicNoticeLogMapper;
    
    @Override
    public Integer insertSelective(BasicNoticeLog tdBasicNoticeLog) throws Exception {
           return this.tdBasicNoticeLogMapper.insertSelective(tdBasicNoticeLog);
        }

    @Override
    public Integer insertBatch(List<BasicNoticeLog> tdBasicNoticeLog) throws Exception {
           return this.tdBasicNoticeLogMapper.insertBatch(tdBasicNoticeLog) ;
        }

    @Override
    public Integer deleteByPrimaryKey(Object id) {
            return this.tdBasicNoticeLogMapper.deleteByPrimaryKey(id);
    }

    public Integer deleteBatchByPrimaryKey(List<Object> ids) {
           return this.tdBasicNoticeLogMapper.deleteBatchByPrimaryKey(ids);
    }

    @Override
    public Integer updateByPrimaryKeySelective(BasicNoticeLog tdBasicNoticeLog) {
           return this.tdBasicNoticeLogMapper.updateByPrimaryKeySelective(tdBasicNoticeLog);
    }

    @Override
    public BasicNoticeLog findById(Object id) {
           return (BasicNoticeLog) this.tdBasicNoticeLogMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<BasicNoticeLog> selectByCondition(BasicNoticeLog tdBasicNoticeLog) {
           return (List<BasicNoticeLog>) this.tdBasicNoticeLogMapper.selectByCondition(tdBasicNoticeLog);
    }

    @Override
    public Integer selectCountByCondition(BasicNoticeLog tdBasicNoticeLog) {
           return  this.tdBasicNoticeLogMapper.selectCountByCondition(tdBasicNoticeLog);
    }

}
